class LoginEntity {
  String token;
  int isRegister;
  int isAuth;

  LoginEntity({this.token, this.isRegister, this.isAuth});

  LoginEntity.fromJson(Map<String, dynamic> json) {
    token = json['token'];
    isRegister = json['is_register'];
    isAuth = json['is_auth'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['token'] = this.token;
    data['is_register'] = this.isRegister;
    data['is_auth'] = this.isAuth;
    return data;
  }
}